import request from '@/utils/request'

// 查询轮播列表
export function listCarousel(query) {
    return request({
        url: '/city/carousel/list',
        method: 'get',
        params: query
    })
}

// 查询轮播详细
export function getCarousel(carouselId) {
    return request({
        url: '/city/carousel/' + carouselId,
        method: 'get'
    })
}

// 新增轮播
export function addCarousel(data) {
    return request({
        url: '/city/carousel',
        method: 'post',
        data: data
    })
}

// 修改轮播
export function updateCarousel(data) {
    return request({
        url: '/city/carousel',
        method: 'put',
        data: data
    })
}

// 删除轮播
export function delCarousel(carouselId) {
    return request({
        url: '/city/carousel/' + carouselId,
        method: 'delete'
    })
}
